Retrieves a value from the dictionary.
Syntax
Visual Basic (Declaration) | |
---|
Public ReadOnly Default Property Item( _
ByVal key As TKey _
) As TValue |
Parameters
- key
- The key to look for.
Property Value
The value in the dictionary.
Exceptions
Exception | Description |
System.Collections.Generic.KeyNotFoundException | Thrown when the key does exist in the dictionary.
Since the dictionary contains weak references, the key may have been removed by the
garbage collection of the object. |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also